<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_REQUEST["image_id"])
{
	$image_id = strip_tags($_REQUEST["image_id"]);

	$q = Doctrine_Query::create();
	$q->update('AgentImages')
          ->set('deleted', '1') 
          ->where('image_id ='.$image_id);
              
	$rows = $q->execute();          
   
	//print $rows; // the number of affected rows
 
}

?>